import { h } from 'snabbdom/build/package/h'
import { init } from 'snabbdom/build/package/init'

let patch = init([])
let vnode = h('ul', [
    h('ul','1'),
    h('p','2'),
    h('div','3'),
    h('dl','4')
])

let app = document.querySelector('#app')
let oldVnode = patch(app, vnode)

vnode = h('ul', [
    h('dl','3'),
    h('dt','1'),
    h('ol','4'),
    h('div','2'),
    h('p','5'),
])

patch(oldVnode, vnode)